package com.zucc.common.utils;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.ObjectUtils.Null;

import com.zucc.core.po.Equipment;

public class GetEqu {
	
	public List<String> getEquId(String equList) {
		if(equList!=null&&!equList.equals("")) {
		List<String> eqIds=new ArrayList<String>();
		while (equList.indexOf(";")>0) {
			String id=equList.substring(0, equList.indexOf(";"));
			equList=equList.substring(equList.indexOf(";")+1,equList.length());
			Equipment equipment=new Equipment();
			eqIds.add(id);
		}
		return eqIds;
		}else {
			return null;
		}
		
	}

}
